package com.jeesite.modules.task.audit.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 任务过程审核表-记录审核人Entity
 * @author zrr
 * @version 2022-03-08
 */
@Table(name="dc_sup_task_audit_add", alias="a", label="任务过程审核表-记录审核人信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="audit_id", attrName="auditId", label="审核id"),
		@Column(name="auditor_code", attrName="auditorCode", label="审核人编号"),
		@Column(name="auditor_name", attrName="auditorName", label="审核人名称", queryType=QueryType.LIKE),
		@Column(name="use_flag", attrName="useFlag", label="是否生效", comment="是否生效（0否，1是）"),
	}, orderBy="a.id DESC"
)
public class DcSupTaskAuditAdd extends DataEntity<DcSupTaskAuditAdd> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 审核id
	 */
	private String auditId;
	 /**
	 * 审核人编号
	 */
	private String auditorCode;
	 /**
	 * 审核人名称
	 */
	private String auditorName;
	 /**
	 * 是否生效（0否，1是）
	 */
	private String useFlag;
	
	public DcSupTaskAuditAdd() {
		this(null);
	}

	public DcSupTaskAuditAdd(String id){
		super(id);
	}
	
	@Size(min=0, max=64, message="审核id长度不能超过 64 个字符")
	public String getAuditId() {
		return auditId;
	}

	public void setAuditId(String auditId) {
		this.auditId = auditId;
	}
	
	public String getAuditorCode() {
		return auditorCode;
	}

	public void setAuditorCode(String auditorCode) {
		this.auditorCode = auditorCode;
	}
	
	public String getAuditorName() {
		return auditorName;
	}

	public void setAuditorName(String auditorName) {
		this.auditorName = auditorName;
	}
	
	public String getUseFlag() {
		return useFlag;
	}

	public void setUseFlag(String useFlag) {
		this.useFlag = useFlag;
	}
	
}